const path  = require('path')
const fs = require('fs')
//获取当前文件夹
console.log(__dirname)//文件夹
console.log(__filename)//文件
let ulr = path.join(__dirname,'./txt/01.txt')

fs.readFile(ulr,'utf-8',(err,data)=>{
    if(err!=null)  return console.log(err.message)
    console.log(data)
})